import {Request, Response, RequestHandler as Middlerware } from "express";

export type User={
    username: string;
    password: string;
};
export type todoList={
    id: any;
    content: string;
    status:number;
}

export type Handler = (req:Request, res: Response)=>any;

type Method = 
    | 'get'
    | 'head'
    | 'post'
    | 'put'
    | 'delete'
    | 'connect'
    | 'options'
    | 'trace'
    | 'patch';

export type Route = {
    method: Method;
    path: string;
    middleware : Middlerware[];
    handler: Handler;
}